package yf.mall.dao;

import org.apache.ibatis.annotations.Select;
import yf.mall.entity.AppCourseEntity;
import yf.mall.entity.custom.AppCourseParam;
import yf.mall.vo.AppCourseVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
/**
 * 课程信息表Dao
 *
 *
 *
 * @date Tue Jul 18 14:30:26 CST 2023
 */
@Mapper
public interface AppCourseDao extends BaseDao<AppCourseEntity> {

    List<AppCourseVo> findVo(AppCourseVo vo);

    AppCourseVo getVo(Long id);

    /**
     *  自定义查询课程信息
     * @param appCourseParam
     * @return
     */
    List<AppCourseEntity> findByQuery(AppCourseParam appCourseParam);

    @Select("select * from app_course")
    List<AppCourseEntity> findAll();

    @Select("select * from app_course where hot = #{value}")
    List<AppCourseEntity> findByHot(Integer value);
}
